<?php
$cs = Yii::app()->getClientScript();
$cs->registerCSSFile(Yii::app()->request->baseUrl.'/css/defaultTheme.css');
$cs->registerScriptFile(Yii::app()->request->baseUrl.'/js/jquery.fixedheadertable.min.js');
?>
<?php
$screen = Blyn::app()->getUIManager()->getCurrentScreen();
$wxControl = $screen->getChildControl('BUIWXControl_1');
//$availableUrl = $control->getLinkUrl(array('name' => 'available','id' => 'booking_list_available'));
//$listUrl = $control->getLinkUrl(array('name' => 'list','id' => 'booking_list'));
$findUrl = $wxControl->getLinkUrl(array('name' => 'find','id' => 'booking_find_1'));
$myBookingUrl = $wxControl->getLinkUrl(array('name' => 'myBooking','id' => 'booking_list_myBooking_1'));
?>
<script type="text/javascript">
$( document ).on( "pagecreate", function() {
    $("#find").click(function() {
        location.href = "<?php echo $findUrl;?>";
    });
    $("#mybooking").click(function() {
        location.href = "<?php echo $myBookingUrl;?>";
    });
    $("#other").click(function() {
        location.href = "#";
    });
});
</script>
<div data-role="tabs" id="tabs">
    <div data-role="navbar">
        <ul>
            <li><a href="#" id="find" data-ajax="false">分类查询</a></li></a>
            <li><a href="#" id="mybooking" data-ajax="false">我的预订</a></li>
            <li><a href="#" id="other" data-ajax="false">其他</a></li>
        </ul>
    </div>
</div>